package org.mogoo.simple;

import java.text.DateFormat;
import java.text.NumberFormat;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Author: Fang
 * Date: 12-8-16
 * Time: 上午9:13
 * Email: dongfang@mogoo.org
 */
public class TestProject
{
    public static void main(String [] args) throws Exception
    {
        A cl = new B();
        System.out.println(cl instanceof A);

        HashSet hashset = new HashSet();
        hashset.add("fang");
        ArrayList  arrayList = new ArrayList();

        LinkedList ll = new LinkedList();
        //System.out.println(Runtime.getRuntime().exec("notepad.exe"));
        String str ="sssss";
        byte[] bt = str.getBytes();

        Random random = new Random(System.currentTimeMillis());
        System.out.println(random.nextInt(77));
        System.out.println(random.nextInt(77));
        System.out.println(random.nextInt());
        System.out.println(random.nextInt());

        Calendar c = Calendar.getInstance();
        TimeZone tz = TimeZone.getDefault();
        NumberFormat nf = NumberFormat.getNumberInstance();
        System.out.println(nf.format(1111111111111L));
        c.getTime();

        DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG);
        System.out.println(df.format(new Date()));

    }

    public class G
    {

    }

}
class A
{

}

class B extends A
{

}